package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuReductionTo;
import com.atguigu.common.to.SpuBoundTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {


    @RequestMapping("coupon/spubounds/save")
    R saveBoundInfo(@RequestBody SpuBoundTo spuBoundTo);

    @RequestMapping("coupon/skufullreduction/fullreduceinfo")
    R saveFullReduceInfo(@RequestBody SkuReductionTo skuReductionTo);
}
